home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-10 | 4.3 KB | 97 lines | [TEXT/ttxt] |
- *** NILoadWave Documentation ***
-
- NILoadWave is an Igor external operation that imports data from Nicolet files.
- It adds a menu item to Igor's Load Wave File... submenu for the NILoadWave
- operation.
-
- NILoadWave loads Nicolet .WFT files but not .WFF files. It handles multi-
- segment files and waveforms with up to three zones. It does not handle
- .WFF files.
-
- NOTE:
- We can't guarantee that NILoadWave will work with every Nicolet file,
- past, present or future.
-
- To use NILoadWave, drag the NILoadWave XOP file into the folder that contains
- the Igor application. Then, launch Igor. The 'Load Waves' hierarchical menu
- in Igor's 'File' menu will have an item that says "Load Nicolet File". If you
- select this, NILoadWave will present you with a dialog. Select a Nicolet
- binary file from the dialog. NILoadWave will load the file, creating one
- or more Igor waves, depending on how many segments the Nicolet file has.
-
- If the Nicolet file has more than one zone (timebase), NILoadWave also
- creates an "X wave" against which you can plot the wave or waves created
- from the data in the Nicolet file.
-
- The Nicolet file may specify the name to be used for the waveforms in that
- file. NILoadWave tries to respect this. However, if the name specified in
- the file conflicts with the name of an Igor keyword, NILoadWave will give
- you a chance to specify a different name for the wave of waves created.
-
- You can use the NILoadWave operation from Igor's command line or from
- an Igor macro as well as from the 'File' menu.
-
- NILoadWave is called from Igor's command line as follows:
- NILoadWave [/Q/O/D/I/A[=name]/N[=name]/P=path] ["fileName"]
-
- where fileName is the name of the file to import. The fileName can be in
- a string variable as well a literal string. If you omit the filename or the
- path, NILoadWave will bring up the standard open dialog so that you can
- specify the file to load.
-
- The name of loaded waves are derived from the name stored in the Nicolet
- file (the "waveform title" in Nicolet terminology), unless there is no name
- stored in the Nicolet file or you use the /A, /A=name, /N or /N=name flags.
- These are described below.
-
- Since wave names can not contain blank spaces, NILoadWave changes blank
- spaces to underscore characters. It also shortens column names if necessary.
-
- The flags are:
-
- /Q be quiet -- suppress normal diagnostic messages
- /O overwrite existing waves of same name
- /D make waves double precision
- /I interactive -- use standard open dialog to get file name
- /A assign wave names using "wave" as base
- /A=name assign wave names using "name" as base
- /N like /A except reuses existing names
- /N=name like /A except reuses existing names
- /P=path use symbolic path plus fileName to find file
-
- If "fileName" is omitted or /I is used it brings up the standard open dialog
- to get fileName.
-
- If neither /A, /A=name, /N, /or N=name is used then the wave names come
- from the file or, if there is no waveform title in the file, the names of the
- form "wave0", "wave1", . . . are used.
-
- If /A or /A=name is used then names of the form "wave0", "wave1" or "name0",
- "name1" are used where the digits are chosen to avoid conflicts with existing
- waves, variables or other names.
-
- If /N or /N=name is used then names of the form "wave0", "wave1" or "name0",
- "name1" are used where the digits always start from zero and increment.
-
- If the file has more than one zone, an X wave is made against which it can
- be graphed. The name of the X wave is the base name with _X appended to
- the end. A digit is appended to the name of the X wave to make it unique if
- the overwrite option (/O or /N) has not been specified.
-
- For example:
- NILoadWave /P=path "hd:Graphing:Test Data"
- would load the file "Test Data" from the folder "Graphing" on the disk "hd".
- It would base the wave names on the names stored in the file.
-
- And,
- NILoadWave /D/N=DATA
- would bring up a standard open dialog to get the fileName, would generate
- wave names of the form "DATAn" where n is some number starting from zero,
- would overwrite waves with the same name and would make double
- precision waves.
-
- NILoadWave sets the V_Flag variable to the number of waves loaded.
- It creates V_Flag if it does not already exist. It also sets the string variable
- S_Filename to the name of the file that was loaded, but only if S_Filename
- already exists.
-